package com.spring.cootask.web.model;

import com.spring.security.core.validators.Insert;
import com.spring.security.core.validators.Update;
import com.spring.security.web.model.BaseModel;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

public class CooTaskUser extends BaseModel{

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    @NotNull(message = "当前流转编号不可为空",groups = {Update.class})
    @NotEmpty(message = "当前流转编号不可为空",groups = {Update.class})
    private String id;

    @NotNull(message = "任务编号不可为空",groups = {Insert.class})
    @NotEmpty(message = "任务编号不可为空",groups = {Insert.class})
    private String fTaskHeadid;

    @NotNull(message = "下发人不可为空",groups = {Insert.class})
    @NotEmpty(message = "下发人不可为空",groups = {Insert.class})
    private String fromUserId;

    private String fromUserName;

    @NotNull(message = "下发部门不可为空",groups = {Insert.class})
    @NotEmpty(message = "下发部门不可为空",groups = {Insert.class})
    private String fromDeptId;

    private String fromDeptName;

    @NotNull(message = "人员不可为空",groups = {Insert.class})
    @NotEmpty(message = "人员不可为空",groups = {Insert.class})
    private String toUserId;

    private String toUserName;

    @NotNull(message = "部门不可为空",groups = {Insert.class})
    @NotEmpty(message = "部门不可为空",groups = {Insert.class})
    private String toDeptId;

    private String toDeptName;

    private Integer transferLevel;

    private Integer status;

    private String pid;

    private String note;
    
	private int wx_remind=0;
    
    public int getWx_remind() {
		return wx_remind;
	}

	public void setWx_remind(int wx_remind) {
		this.wx_remind = wx_remind;
	}

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getfTaskHeadid() {
        return fTaskHeadid;
    }

    public void setfTaskHeadid(String fTaskHeadid) {
        this.fTaskHeadid = fTaskHeadid == null ? null : fTaskHeadid.trim();
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId == null ? null : fromUserId.trim();
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName == null ? null : fromUserName.trim();
    }

    public String getFromDeptId() {
        return fromDeptId;
    }

    public void setFromDeptId(String fromDeptId) {
        this.fromDeptId = fromDeptId == null ? null : fromDeptId.trim();
    }

    public String getFromDeptName() {
        return fromDeptName;
    }

    public void setFromDeptName(String fromDeptName) {
        this.fromDeptName = fromDeptName == null ? null : fromDeptName.trim();
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId == null ? null : toUserId.trim();
    }

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName == null ? null : toUserName.trim();
    }

    public String getToDeptId() {
        return toDeptId;
    }

    public void setToDeptId(String toDeptId) {
        this.toDeptId = toDeptId == null ? null : toDeptId.trim();
    }

    public String getToDeptName() {
        return toDeptName;
    }

    public void setToDeptName(String toDeptName) {
        this.toDeptName = toDeptName == null ? null : toDeptName.trim();
    }

    public Integer getTransferLevel() {
        return transferLevel;
    }

    public void setTransferLevel(Integer transferLevel) {
        this.transferLevel = transferLevel;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid == null ? null : pid.trim();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

}